// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false
//自定义指令
Vue.directive('focus',{
	inserted(el){
//		console.log(el)
		el.focus();
	},
	bind(){
//		console.log("组件绑定成功")
	},
	updated(){
//		console.log("节点发生变化")
	},
	componentUpdated(el){
		console.log(el)
//		console.log("componentUpdated")
	},
	unbind(){
//		console.log("组件被解除")
	}
});
/* eslint-disable no-new */
let vue = new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
});

window.vue=vue;
window.Vue = Vue;
